import request from '@/utils/request'

// 陪伴师列表
export const getTeacherList = (params) => request.get('/coach/lists', { params })

// 陪伴师详情
export const getTeacherDetail = (params) => request.get('/coach/detail', { params })

// 课程列表
export const getCourseList = (params) => request.get('/course/list', { params })
// 课程详情
export const getCourseDetail = (params) => request.get('/course/detail', { params })

// 学员列表
export const getStudentList = (params) => request.get('/student/list', { params })

// 添加学员
export const addStudent = (params) => request.post('/student/add', params)
// 修改学员信息
export const updateStudentInfo = (params) => request.post('/student/update', params)

// 发起拼班
export const createGroupClass = (params) => request.post('/group_class/create', params)

// 获取班级类型列表
export const getClassTypes = () => request.get('/group_class/class_types')

// 身份认证
export const ocrIdCard = (params) => request.post('/ocr/idcard', params)

// 主理人邀请陪伴师接单（匹配陪伴师）
export const matchTeacher = (params) => request.post('/course_matching/invite', params)

// 排课列表接口
export const getCourseScheduleList = (params) => request.get('/course_schedule/list', { params })

// 排课详情接口
export const getCourseScheduleDetail = (params) => request.get('/course_schedule/detail', { params })

// 排课新增接口
export const addCourseSchedule = (params) => request.post('/course_schedule/add', params)

// 获取课程分类列表
export const getCourseCategories = (params) => request.get('/course/categories', { params })

// 根据课程分类获取课程列表
export const getCoursesByCategory = (params) => request.get('/course/getCoursesByCategory', { params })

// 确认/拒绝陪伴师抢单
export const confirmGrab = (params) => request.post('/course_matching/confirmGrab', params)

// 获取拼班时长配置
export const getClassDeadlineConfig = (params) => request.get('/group_class/getClassDeadlineConfig', { params })

// 获取拼班业务配置（完整版）
export const getGroupClassBusinessConfig = (params) => request.get('/group_class/getBusinessConfig', { params })

// 拼版课程置顶排序
export const setStarTop = (params) => request.post('/course_schedule/setStarTop', { params })

// 邀请陪伴师 收藏
export const setFavorite = (params) => request.post('/coach/setFavorite', { params })
